package com.example.wxai.pijo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "comment_id", type = IdType.AUTO)
    private Long commentId;

    private String content;

    private String creatTime;

    private Boolean isDelete;

    private String userId;

    private String essayId;

    private Integer commentLikeCount;

    private Long toCommentId;

    private String userImg;

    private String userName;

    private Long rootCommentId;



    //回复谁
    private String subCommentName;


}
